import java.util.Scanner;

public class text6 {
    public static int Add(int x,int y){
        return x+y;
    }

    public static double Add(double x,double y,double z){
        return x+y+z;
    }


        public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        int b= sc.nextInt();
        System.out.println(Add(a,b));
        double c= sc.nextDouble();
        double d= sc.nextDouble();
        double e= sc.nextDouble();
        System.out.println(Add(c,d,e));

        }
}
